package com.zhenwei.zscm.service;

import com.zhenwei.zscm.common.base.RestResult;
import com.zhenwei.zscm.model.dto.apiInfo.ApiInfoDTO;
import com.zhenwei.zscm.repo.ApiInfoRepo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@AllArgsConstructor
@Service
public class ApiService {
    private ApiInfoRepo apiInfoRepo;

    public RestResult list(){
        List<ApiInfoDTO> all = apiInfoRepo.all();
        return RestResult.success(all, all.size());
    }
}
